import React from 'react';
import {messages} from "share/common";
import moment from "moment/moment";

export default {
  trainColumns() {
    return [
      // todo 账户ID
      {
        title: messages('financial-management.key343')/*公司名称*/,
        key: "companyName",
        dataIndex: 'companyName',
        width: 120,
      },
      {
        /*结算批次号*/
        title: messages('financial-management.key113')/*批次号*/,
        key: "batchNo",
        dataIndex: 'batchNo',
        width: 120,
      },
      {
        /*结算主键*/
        title: messages('financial-management.key859')/*结算ID*/,
        key: "recordId",
        dataIndex: 'recordId',
        width: 120,
      },
      {
        /*订单号*/
        title: messages('financial-management.key52'/*订单号*/),
        key: "orderId",
        dataIndex: 'orderId',
        width: 120,
      },
      {
        /*结算日期*/
        title: messages('financial-management.key41'/*结算日期*/),
        key: "settlementCreatetime",
        dataIndex: 'settlementCreatetime',
        render: (value) => moment(value).format('YYYY-MM-DD'),
        width: 120,
      },
      // todo 数据落地日期
      {
        /*服务类型*/
        title: messages('financial-management.key860')/*操作类型*/,
        key: "detailType",
        dataIndex: 'detailType',
        width: 120,
      },
      {
        /*支付类型*/
        title: messages('financial-management.key60'/*支付类型*/),
        key: "unityPayType",
        dataIndex: 'unityPayType',
        width: 120,
      },
      // todo 导入渠道
      {
        /*供应商*/
        title: messages('financial-management.key856')/*消费商名称*/,
        key: "vendor",
        dataIndex: 'vendor',
        width: 120,
      },
      {
        title: messages('financial-management.key822')/*预订人姓名*/,
        key: "bookerName",
        dataIndex: 'bookerName',
        width: 120,
      },
      {
        /*国内国际*/
        title: messages('financial-management.key792')/*国内/国际*/,
        key: "internationalType",
        dataIndex: 'internationalType',
        width: 120,
      },
      {
        /*出发城市*/
        title: messages('financial-management.key47'/*出发城市*/),
        key: "departureCityName",
        dataIndex: 'departureCityName',
        width: 120,
      },
      {
        /*到达城市*/
        title: messages('financial-management.key48'/*到达城市*/),
        key: "arrivalCityName",
        dataIndex: 'arrivalCityName',
        width: 120,
      },
      {
        /*出发时间*/
        title: messages('financial-management.key886')/*出发日期*/,
        key: "departureDateTime",
        dataIndex: 'departureDateTime',
        width: 120,
        render: value => moment(value).format('YYYY-MM-DD HH:mm:ss')
      },
      {
        /*乘客*/
        title: messages('financial-management.key877')/*乘客姓名*/,
        key: "passengerName",
        dataIndex: 'passengerName',
        width: 120,
      },
      {
        /*工号*/
        title: messages('financial-management.key878')/*乘客工号*/,
        key: "employeeId",
        dataIndex: 'employeeId',
        width: 120,
      },
      {
        /*价格*/
        title: messages('financial-management.key866')/*应付金额*/,
        key: "realAmount",
        dataIndex: 'realAmount',
        width: 120,
      },
      {
        /*服务费*/
        title: messages('financial-management.key712')/*服务费*/,
        key: "serverFee",
        dataIndex: 'serverFee',
        width: 120,
      },
      // todo 费用合计
      {
        /*坐席*/
        title: messages('financial-management.key887')/*坐席名称*/,
        key: "firstSeatTypeName",
        dataIndex: 'firstSeatTypeName',
        width: 120,
      },
      {
        /*成本中心1*/
        title: messages('financial-management.key871')/*订单成本中心1*/,
        key: "costCenter1",
        dataIndex: 'costCenter1',
        width: 120,
      },
      {
        /*成本中心2*/
        title: messages('financial-management.key872')/*订单成本中心2*/,
        key: "costCenter2",
        dataIndex: 'costCenter2',
        width: 120,
      },
      {
        /*成本中心3*/
        title: messages('financial-management.key873')/*订单成本中心3*/,
        key: "costCenter3",
        dataIndex: 'costCenter3',
        width: 120,
      },
      {
        /*自定义字段1*/
        title: messages('financial-management.key874')/*备注1*/,
        key: "defineValue1",
        dataIndex: 'defineValue1',
        width: 120,
      },
      {
        /*自定义字段2*/
        title: messages('financial-management.key875')/*备注2*/,
        key: "defineValue2",
        dataIndex: 'defineValue2',
        width: 120,
      },
      {
        /*是否超标*/
        title: messages('financial-management.key793')/*是否超标*/,
        key: "excessive",
        dataIndex: 'excessive',
        width: 120,
        render: value => value === true ? messages('financial-management.key316')/*是*/ : value === false ? messages('financial-management.key317')/*否*/ : '',
      },
      {
        /*超标原因*/
        title: messages('financial-management.key794')/*超标原因*/,
        key: "reasonRemark",
        dataIndex: 'reasonRemark',
        width: 120,
      },
      {
        /*关联行程号*/
        title: messages('financial-management.key867')/*行程号*/,
        key: "jouneryId",
        dataIndex: 'jouneryId',
        width: 120,
      },
      {
        title: messages('financial-management.key171')/*申请单号*/,
        key: "businessCode",
        dataIndex: 'businessCode',
        width: 120,
      },
      // todo 申请单名称
      // todo 参与人
      // todo 表单出发城市
      // todo 表单到达城市
      // todo 出发日期
      // todo 公司
      // todo 部门
      // todo 表单成本中心1code
      // todo 表单成本中心1名称
      // todo 表单成本中心2code
      // todo 表单成本中心2名称
      // todo 表单成本中心3code
      // todo 表单成本中心3名称
      // todo 表单成本中心4code
      // todo 表单成本中心4名称
      // todo 表单成本中心5code
      // todo 表单成本中心5名称
    ]
  },
}
